<LayoutEditFormBox :loading="load">
  <template slot="main">
    <el-form
      ref="editForm"
      :model="form"
      label-width="200px"
      label-position="left"
    >
      <LayoutCell>
        <LayoutCellItem title="基础">

          <el-form-item label="是否开启汇聚支付">
            <el-radio v-model="form.isOpen" label="1">是</el-radio>
            <el-radio v-model="form.isOpen" label="0">否</el-radio>
          </el-form-item>

          <el-form-item label="商户秘钥" prop="merchantKey">
            <el-input v-model.trim="form.merchantKey"></el-input>
          </el-form-item>

          <el-form-item label="商户编号" prop="merchantNo">
            <el-input v-model.trim="form.merchantNo"></el-input>
          </el-form-item>

          <el-form-item label="报备商户号" prop="tradeMerchantNo">
            <el-input v-model.trim="form.tradeMerchantNo"></el-input>
          </el-form-item>

        </LayoutCellItem>

        <LayoutCellItem title="小程序App">

          <el-form-item label="是否开启小程序支付">
            <el-radio v-model="form.isOpenMa" label="1">是</el-radio>
            <el-radio v-model="form.isOpenMa" label="0">否</el-radio>
          </el-form-item>

          <el-form-item label="小程序APPID" prop="maAppId">
            <el-input v-model.trim="form.maAppId" :disabled="form.isOpenMa == 0"></el-input>
          </el-form-item>
          
          <el-form-item label="小程序原始ID" prop="maOriginalId">
            <el-input v-model.trim="form.maOriginalId" :disabled="form.isOpenMa == 0" ></el-input>
          </el-form-item>


        </LayoutCellItem>

        <LayoutCellItem title="公众号App">

          <el-form-item label="是否开启公众号支付">
            <el-radio v-model="form.isOpenMp" label="1">是</el-radio>
            <el-radio v-model="form.isOpenMp" label="0">否</el-radio>
          </el-form-item>

          <el-form-item label="公众号APPID" prop="mpAppId">
            <el-input v-model.trim="form.mpAppId"  :disabled="form.isOpenMp == 0"></el-input>
          </el-form-item>
          
          <el-form-item label="公众号原始ID" prop="mpOriginalId">
            <el-input v-model.trim="form.mpOriginalId"  :disabled="form.isOpenMp == 0"></el-input>
          </el-form-item>

        </LayoutCellItem>

        <LayoutCellItem title="其他">
          
          <el-form-item label="是否开启H5支付">
            <el-radio v-model="form.isOpenWeb" label="1">是</el-radio>
            <el-radio v-model="form.isOpenWeb" label="0">否</el-radio>
          </el-form-item>
         </LayoutCellItem>
      </LayoutCell>
    </el-form>
  </template>
  <template slot="footer">
    <el-button type="primary" @click="submit()">保存</el-button>
  </template>
</LayoutEditFormBox>
